<a href="javascript:history.back();">Wróć</a> | 
<a href="<?php echo $this->url(array('controller' => 'category', 'action' => 'show-categories'), null, true);?>">Pokaż wszystkie</a>
<ul>
<?php foreach ($this->categories as $cat):?>
		<li>
			<?php if ($cat->hasDescendants()):?>
				<a href="<?php echo $this->url(array('id' => $cat->id));?>">
					<?php echo $cat->nazwa?>
				</a>
			<?php else: ?>
				<a href="<?php echo $this->url(array('controller' => 'category', 'action' => 'show-category', 'id' => $cat->id), null, true);?>">
					<?php echo $cat->nazwa?>
				</a>
			<?php endif; ?>
		</li>	
<?php endforeach;?>
</ul>
